import 'package:flutter_chubao/config/app_config.dart';
import 'package:flutter_chubao/route/app_route_name.dart';
import 'package:get/get.dart';

import 'app_mine_protocols_state.dart';

/// @description:
/// @author
/// @date: 2023-12-15 10:26:58
class AppMineProtocolsLogic extends GetxController {
  final state = AppMineProtocolsState();
  clickProtocol(Map entity) {
    Get.toNamed(AppRouteName.appWebPage, arguments: {
      'url': "${AppConfig.baseHost}agreement/show?type=${entity['type'] ?? ""}",
      'title': entity['title']
    });
  }
}
